package com.espirit.builder.biz;

import com.espirit.eap.manager.ModelBuilderSupport;

//@Component
public class AcctItemRefBuilderSupport extends ModelBuilderSupport {
	protected static final String NAME = "name";
	protected static final String PROPERTY = "property";
	
	
	@Override
	public boolean init() {
		return true;
	}

	@Override
	public void buildFields() {
		super.buildFields();
		addModelField(NAME, "Name", "名称");
		addModelField(PROPERTY, "Property", "属性");
	}
	
	@Override
	protected void addSearchFields() {
		super.addSearchField(convertPropertyToField(NAME));
	}
	
	@Override
	protected void addListFields() {
		addListField(convertPropertyToField(NAME, PROPERTY));
	}
	
	@Override
	protected void addDetailFields() {
		addDetailField(convertPropertyToField(NAME, PROPERTY));
	}
	
	@Override
	protected void gatherExproperties() {
		exProperties.put(REQUIRED, new String[]{NAME, PROPERTY});
	}
}
